using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using AutoReplace.Models;
using AutoReplace.Utils;
using Kane.Extension;
using Kane.Extension.JsonNet;

namespace AutoReplace
{
    static class Program
    {
        /// <summary>
        ///  The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.SetHighDpiMode(HighDpiMode.SystemAware);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var json = File.ReadAllText("D:\\AutoReplace.txt");
            var temp = json.ToObject<JsonSetting>();
            var te1= Common.CheckFileOrPath("D:\\Projects\\KaneProjects\\FurTemplate\\license");
            var te2= Common.CheckFileOrPath("D:\\Projects\\KaneProjects\\FurTemplate\\license\\license");
            var te3 = Common.CheckFileOrPath("D:\\Projects\\KaneProjects\\FurTemplate\\FurTemplate.1.0.1.nupkg");
            var te4 = Common.CheckFileOrPath("D:\\Projects\\KaneProjects\\FurTemplate\\license2");
            var te5 = Common.CheckFileOrPath("D:\\Projects\\KaneProjects\\FurTemplate\\license\\license2");

            Application.Run(new MainForm());
        }
    }
}
